class_name Eagle
extends GameplayObject

@onready var state_checker: EagleStateChecker = %StateChecker

@onready var damage_checker: Area2D = %DamageChecker


func _ready() -> void:
	face_direction = -1


func _process(_delta: float) -> void:
	damage_checker.body_entered.connect(func(body):
		var target = body as GameplayObject
		if target:
			activate_ability("simple_damage", target.asc)
	)
	
	move_and_slide()
